package Demo2;

public class Teacher extends People{

    public Teacher(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println("teacher eat...");
    }

    public void teach(){
        System.out.println("teach...");
    }
}
